import BN from "bn.js";
import { Address } from "web3x-es/address";
import { EventLog, TransactionReceipt } from "web3x-es/formatters";
import { Contract, ContractOptions, TxCall, TxSend, EventSubscriptionFactory } from "web3x-es/contract";
import { Eth } from "web3x-es/eth";
import abi from "./MarketplaceAdapterAbi";
export type AdapterFeeChangeEvent = {
    previousFee: string;
    newFee: string;
};
export type ExecutedOrderEvent = {
    registry: Address;
    tokenId: string;
    marketplace: Address;
    orderValue: string;
    orderFees: string;
};
export type FeesCollectorChangeEvent = {
    collector: Address;
};
export type MarketplaceAllowanceEvent = {
    marketplace: Address;
    value: boolean;
};
export type OwnershipTransferredEvent = {
    previousOwner: Address;
    newOwner: Address;
};
export type SetConverterEvent = {
    converter: Address;
};
export interface AdapterFeeChangeEventLog extends EventLog<AdapterFeeChangeEvent, "AdapterFeeChange"> {
}
export interface ExecutedOrderEventLog extends EventLog<ExecutedOrderEvent, "ExecutedOrder"> {
}
export interface FeesCollectorChangeEventLog extends EventLog<FeesCollectorChangeEvent, "FeesCollectorChange"> {
}
export interface MarketplaceAllowanceEventLog extends EventLog<MarketplaceAllowanceEvent, "MarketplaceAllowance"> {
}
export interface OwnershipTransferredEventLog extends EventLog<OwnershipTransferredEvent, "OwnershipTransferred"> {
}
export interface SetConverterEventLog extends EventLog<SetConverterEvent, "SetConverter"> {
}
interface MarketplaceAdapterEvents {
    AdapterFeeChange: EventSubscriptionFactory<AdapterFeeChangeEventLog>;
    ExecutedOrder: EventSubscriptionFactory<ExecutedOrderEventLog>;
    FeesCollectorChange: EventSubscriptionFactory<FeesCollectorChangeEventLog>;
    MarketplaceAllowance: EventSubscriptionFactory<MarketplaceAllowanceEventLog>;
    OwnershipTransferred: EventSubscriptionFactory<OwnershipTransferredEventLog>;
    SetConverter: EventSubscriptionFactory<SetConverterEventLog>;
}
interface MarketplaceAdapterEventLogs {
    AdapterFeeChange: AdapterFeeChangeEventLog;
    ExecutedOrder: ExecutedOrderEventLog;
    FeesCollectorChange: FeesCollectorChangeEventLog;
    MarketplaceAllowance: MarketplaceAllowanceEventLog;
    OwnershipTransferred: OwnershipTransferredEventLog;
    SetConverter: SetConverterEventLog;
}
interface MarketplaceAdapterTxEventLogs {
    AdapterFeeChange: AdapterFeeChangeEventLog[];
    ExecutedOrder: ExecutedOrderEventLog[];
    FeesCollectorChange: FeesCollectorChangeEventLog[];
    MarketplaceAllowance: MarketplaceAllowanceEventLog[];
    OwnershipTransferred: OwnershipTransferredEventLog[];
    SetConverter: SetConverterEventLog[];
}
export interface MarketplaceAdapterTransactionReceipt extends TransactionReceipt<MarketplaceAdapterTxEventLogs> {
}
interface MarketplaceAdapterMethods {
    ADAPTER_FEE_MAX(): TxCall<string>;
    ADAPTER_FEE_PRECISION(): TxCall<string>;
    adapterFeesCollector(): TxCall<Address>;
    adapterTransactionFee(): TxCall<string>;
    buy(_registry: Address, _tokenId: number | string | BN, _marketplace: Address, _encodedCallData: string, _orderAmount: number | string | BN, _transferType: number | string | BN, _beneficiary: Address): TxSend<MarketplaceAdapterTransactionReceipt>;
    buy(_registry: Address, _tokenId: number | string | BN, _marketplace: Address, _encodedCallData: string, _orderAmount: number | string | BN, _paymentToken: Address, _maxPaymentTokenAmount: number | string | BN, _transferType: number | string | BN, _beneficiary: Address): TxSend<MarketplaceAdapterTransactionReceipt>;
    buy(_marketplace: Address, _encodedCallData: string, _orderAmount: number | string | BN, _paymentToken: Address, _maxPaymentTokenAmount: number | string | BN): TxSend<MarketplaceAdapterTransactionReceipt>;
    buy(_marketplace: Address, _encodedCallData: string, _orderAmount: number | string | BN): TxSend<MarketplaceAdapterTransactionReceipt>;
    converterAddress(): TxCall<Address>;
    onERC721Received(a0: Address, a1: Address, a2: number | string | BN, a3: string): TxSend<MarketplaceAdapterTransactionReceipt>;
    onERC721Received(a0: Address, a1: number | string | BN, a2: string): TxCall<string>;
    owner(): TxCall<Address>;
    renounceOwnership(): TxSend<MarketplaceAdapterTransactionReceipt>;
    setAdapterFee(_transactionFee: number | string | BN): TxSend<MarketplaceAdapterTransactionReceipt>;
    setConverter(_converter: Address): TxSend<MarketplaceAdapterTransactionReceipt>;
    setFeesCollector(_collector: Address): TxSend<MarketplaceAdapterTransactionReceipt>;
    transferOwnership(newOwner: Address): TxSend<MarketplaceAdapterTransactionReceipt>;
}
export interface MarketplaceAdapterDefinition {
    methods: MarketplaceAdapterMethods;
    events: MarketplaceAdapterEvents;
    eventLogs: MarketplaceAdapterEventLogs;
}
export class MarketplaceAdapter extends Contract<MarketplaceAdapterDefinition> {
    constructor(eth: Eth, address?: Address, options?: ContractOptions) {
        super(eth, abi, address, options);
    }
    deploy(_converter: Address, _collector: Address, _adapderFee: number | string | BN): TxSend<MarketplaceAdapterTransactionReceipt> {
        return super.deployBytecode("0x60806040523480156200001157600080fd5b5060405162003f8638038062003f86833981810160405260608110156200003757600080fd5b8101908080519060200190929190805190602001909291908051906020019092919050505060006200006e6200014f60201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555062000124836200015760201b60201c565b6200013582620002b060201b60201c565b62000146816200040960201b60201c565b50505062000584565b600033905090565b620001676200014f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000229576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fc06343c9448e37c4ed257861469b4b35c140991c9cf08a4c38d335a1bc6a75d360405160405180910390a250565b620002c06200014f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161462000382576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fba265e20be387f8937b3b82562be8389bc8d09d0342f59413cdbc3dd414e564260405160405180910390a250565b620004196200014f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614620004db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80620249f0101562000539576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018062003f636023913960400191505060405180910390fd5b7f552893ff1179f25b1926dceb67fd12d0cc80f321a3ab90033956728e3ab106b960035482604051808381526020018281526020019250505060405180910390a18060038190555050565b6139cf80620005946000396000f3fe6080604052600436106101025760003560e01c806391c0871c11610095578063bba3a7c711610064578063bba3a7c7146108ac578063ce45332614610991578063f0b9e5ba146109e8578063f2fde38b14610b2c578063fd7d4b8f14610b7d576101ab565b806391c0871c14610590578063aba1e2ba14610704578063b19337a414610820578063ba215f6314610871576101ab565b806370bbde42116100d157806370bbde42146103bb578063715018a6146103e6578063742e08e3146103fd5780638da5cb5b14610539576101ab565b8063150b7a02146101b05780632c5eadde14610314578063373071f21461033f57806345ce5f1914610390576101ab565b366101ab573273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156101a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f427579416461707465723a2073656e64657220696e76616c696400000000000081525060200191505060405180910390fd5b005b600080fd5b3480156101bc57600080fd5b506102c0600480360360808110156101d357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561023a57600080fd5b82018360208201111561024c57600080fd5b8035906020019184600183028401116401000000008311171561026e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610bd4565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b34801561032057600080fd5b50610329610be8565b6040518082815260200191505060405180910390f35b34801561034b57600080fd5b5061038e6004803603602081101561036257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bef565b005b34801561039c57600080fd5b506103a5610d3f565b6040518082815260200191505060405180910390f35b3480156103c757600080fd5b506103d0610d45565b6040518082815260200191505060405180910390f35b3480156103f257600080fd5b506103fb610d4c565b005b610537600480360360e081101561041357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561047a57600080fd5b82018360208201111561048c57600080fd5b803590602001918460018302840111640100000000831117156104ae57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed4565b005b34801561054557600080fd5b5061054e610ff3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561059c57600080fd5b5061070260048036036101208110156105b457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561061b57600080fd5b82018360208201111561062d57600080fd5b8035906020019184600183028401116401000000008311171561064f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061101c565b005b34801561071057600080fd5b5061081e600480360360a081101561072757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561076457600080fd5b82018360208201111561077657600080fd5b8035906020019184600183028401116401000000008311171561079857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611467565b005b34801561082c57600080fd5b5061086f6004803603602081101561084357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118aa565b005b34801561087d57600080fd5b506108aa6004803603602081101561089457600080fd5b81019080803590602001909291905050506119fa565b005b61098f600480360360608110156108c257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156108ff57600080fd5b82018360208201111561091157600080fd5b8035906020019184600183028401116401000000008311171561093357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190505050611b6a565b005b34801561099d57600080fd5b506109a6611c81565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156109f457600080fd5b50610ad860048036036060811015610a0b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610a5257600080fd5b820183602082011115610a6457600080fd5b80359060200191846001830284011164010000000083111715610a8657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611ca7565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b348015610b3857600080fd5b50610b7b60048036036020811015610b4f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611cba565b005b348015610b8957600080fd5b50610b92611ec7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600063150b7a0260e01b9050949350505050565b620249f081565b610bf7611eed565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cb8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fba265e20be387f8937b3b82562be8389bc8d09d0342f59413cdbc3dd414e564260405160405180910390a250565b60035481565b620f424081565b610d54611eed565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60026001541415610f4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000610f6084611ef5565b90506000610f778286611f2890919063ffffffff16565b9050803414610fd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018061390b602f913960400191505060405180910390fd5b610fe18989898989878a8a611fb0565b50506001808190555050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026001541415611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060006110cf87611ef5565b905060006110e68289611f2890919063ffffffff16565b905060008373ffffffffffffffffffffffffffffffffffffffff1663b27f823689846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b15801561116f57600080fd5b505afa158015611183573d6000803e3d6000fd5b505050506040513d602081101561119957600080fd5b8101908080519060200190929190505050905060008111611205576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806138786026913960400191505060405180910390fd5b8681111561125e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806137476037913960400191505060405180910390fd5b61128b3330838b73ffffffffffffffffffffffffffffffffffffffff1661248d909392919063ffffffff16565b6112d8600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828a73ffffffffffffffffffffffffffffffffffffffff1661257a9092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff16633bba21dc8b85876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200193505050506040805180830381600087803b15801561136957600080fd5b505af115801561137d573d6000803e3d6000fd5b505050506040513d604081101561139357600080fd5b8101908080519060200190929190805190602001909291905050509150915083821461140a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806138266031913960400191505060405180910390fd5b600081111561143f5761143e33828c73ffffffffffffffffffffffffffffffffffffffff166127819092919063ffffffff16565b5b61144f8f8f8f8f8f8a8e8e611fb0565b50505050505060018081905550505050505050505050565b600260015414156114e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061151a85611ef5565b905060006115318287611f2890919063ffffffff16565b905060008373ffffffffffffffffffffffffffffffffffffffff1663b27f823687846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b1580156115ba57600080fd5b505afa1580156115ce573d6000803e3d6000fd5b505050506040513d60208110156115e457600080fd5b8101908080519060200190929190505050905060008111611650576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806138786026913960400191505060405180910390fd5b848111156116a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806137476037913960400191505060405180910390fd5b6116d63330838973ffffffffffffffffffffffffffffffffffffffff1661248d909392919063ffffffff16565b611723600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828873ffffffffffffffffffffffffffffffffffffffff1661257a9092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff16633bba21dc8985876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200193505050506040805180830381600087803b1580156117b457600080fd5b505af11580156117c8573d6000803e3d6000fd5b505050506040513d60408110156117de57600080fd5b81019080805190602001909291908051906020019092919050505091509150838214611855576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806138266031913960400191505060405180910390fd5b600081111561188a5761188933828a73ffffffffffffffffffffffffffffffffffffffff166127819092919063ffffffff16565b5b6118968b8b8b88612839565b505050505050600180819055505050505050565b6118b2611eed565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611973576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fc06343c9448e37c4ed257861469b4b35c140991c9cf08a4c38d335a1bc6a75d360405160405180910390a250565b611a02611eed565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ac3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80620249f01015611b1f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806138e86023913960400191505060405180910390fd5b7f552893ff1179f25b1926dceb67fd12d0cc80f321a3ab90033956728e3ab106b960035482604051808381526020018281526020019250505060405180910390a18060038190555050565b60026001541415611be3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000611bf682611ef5565b90506000611c0d8284611f2890919063ffffffff16565b9050803414611c67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f81526020018061390b602f913960400191505060405180910390fd5b611c7385858585612839565b505060018081905550505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600063f0b9e5ba60e01b90509392505050565b611cc2611eed565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d83576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e09576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806137216026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000611f21620f4240611f1360035485612c4c90919063ffffffff16565b612cd290919063ffffffff16565b9050919050565b600080828401905083811015611fa6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008411612026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f427579416461707465723a20696e76616c6964206f726465722076616c75650081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806137cd6026913960400191505060405180910390fd5b600047905060008773ffffffffffffffffffffffffffffffffffffffff1686886040518082805190602001908083835b6020831061212157805182526020820191506020810190506020830392506120fe565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612183576040519150601f19603f3d011682016040523d82523d6000602084013e612188565b606091505b50509050806121e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806137f36033913960400191505060405180910390fd5b6121f58683612d1c90919063ffffffff16565b471461224c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061389e6025913960400191505060405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16636352211e8b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156122b457600080fd5b505afa1580156122c8573d6000803e3d6000fd5b505050506040513d60208110156122de57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff161461235b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806136ff6022913960400191505060405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050612407576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061377e602b913960400191505060405180910390fd5b6124138a8a8686612d66565b8773ffffffffffffffffffffffffffffffffffffffff16898b73ffffffffffffffffffffffffffffffffffffffff167f41db66efa207667201b031e90bc1ac58c2af27431cb9961a9391c8d9485c1c5b8989604051808381526020018281526020019250505060405180910390a450505050505050505050565b612574846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613220565b50505050565b6000811480612674575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561263757600080fd5b505afa15801561264b573d6000803e3d6000fd5b505050506040513d602081101561266157600080fd5b8101908080519060200190929190505050145b6126c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806139646036913960400191505060405180910390fd5b61277c8363095ea7b360e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613220565b505050565b6128348363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613220565b505050565b600082116128af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f427579416461707465723a20696e76616c6964206f726465722076616c75650081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612957576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806137cd6026913960400191505060405180910390fd5b600047905060008573ffffffffffffffffffffffffffffffffffffffff1684866040518082805190602001908083835b602083106129aa5780518252602082019150602081019050602083039250612987565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612a0c576040519150601f19603f3d011682016040523d82523d6000602084013e612a11565b606091505b5050905080612a6b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806137f36033913960400191505060405180910390fd5b612a7e8483612d1c90919063ffffffff16565b4714612ad5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061389e6025913960400191505060405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050612b81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061377e602b913960400191505060405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff167f252c6c3690d9bf864928fcc8c84eb799be8e3324c6cb81eb35bea7a4c76f21068585886040518084815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612c08578082015181840152602081019050612bed565b50505050905090810190601f168015612c355780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a2505050505050565b600080831415612c5f5760009050612ccc565b6000828402905082848281612c7057fe5b0414612cc7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806138576021913960400191505060405180910390fd5b809150505b92915050565b6000612d1483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061330f565b905092915050565b6000612d5e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506133d5565b905092915050565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612e08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f427579416461707465723a20696e76616c69642062656e65666963696172790081525060200191505060405180910390fd5b60006002811115612e1557fe5b826002811115612e2157fe5b1415612eff578373ffffffffffffffffffffffffffffffffffffffff166342842e0e3083866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015612ee257600080fd5b505af1158015612ef6573d6000803e3d6000fd5b5050505061310b565b60016002811115612f0c57fe5b826002811115612f1857fe5b1415612ff6578373ffffffffffffffffffffffffffffffffffffffff166323b872dd3083866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015612fd957600080fd5b505af1158015612fed573d6000803e3d6000fd5b5050505061310a565b60028081111561300257fe5b82600281111561300e57fe5b14156130b8578373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561309b57600080fd5b505af11580156130af573d6000803e3d6000fd5b50505050613109565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806137a96024913960400191505060405180910390fd5b5b5b8073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561317357600080fd5b505afa158015613187573d6000803e3d6000fd5b505050506040513d602081101561319d57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff161461321a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806138c36025913960400191505060405180910390fd5b50505050565b6060613282826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166134959092919063ffffffff16565b905060008151111561330a578080602001905160208110156132a357600080fd5b8101908080519060200190929190505050613309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061393a602a913960400191505060405180910390fd5b5b505050565b600080831182906133bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613380578082015181840152602081019050613365565b50505050905090810190601f1680156133ad5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816133c757fe5b049050809150509392505050565b6000838311158290613482576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561344757808201518184015260208101905061342c565b50505050905090810190601f1680156134745780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60606134a484846000856134ad565b90509392505050565b60606134b8856136b3565b61352a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061357a5780518252602082019150602081019050602083039250613557565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146135dc576040519150601f19603f3d011682016040523d82523d6000602084013e6135e1565b606091505b509150915081156135f65780925050506136ab565b6000815111156136095780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613670578082015181840152602081019050613655565b50505050905090810190601f16801561369d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91508082141580156136f557506000801b8214155b9250505091905056fe427579416461707465723a20746f6b656e4964206e6f74207472616e7366657265644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373427579416461707465723a207061796d656e74546f6b656e416d6f756e74203e205f6d61785061796d656e74546f6b656e416d6f756e74427579416461707465723a206572726f722073656e64696e67206665657320746f20636f6c6c6563746f72427579416461707465723a20556e736f70706f72746564207472616e7366657254797065427579416461707465723a206665657320436f6c6c6563746f72206d75737420626520736574427579416461707465723a206d61726b6574706c616365206661696c656420746f206578656375746520627579206f72646572427579416461707465723a20696e76616c696420657468657220616d6f756e7420616674657220636f6e76657273696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77427579416461707465723a207061796d656e74546f6b656e416d6f756e7420696e76616c6964427579416461707465723a20706f737463616c6c2062616c616e6365206d69736d61746368427579416461707465723a206572726f722077697468206173736574207472616e73666572427579416461707465723a20496e76616c6964207472616e73616374696f6e20666565427579416461707465723a20696e76616c6964206d73672e76616c756520213d20286f72646572202b2066656573295361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220ef4c536021024d97109b527ce9eec19b40e488e9250cbcb4b962d337e5a5c38f64736f6c63430006080033427579416461707465723a20496e76616c6964207472616e73616374696f6e20666565", _converter, _collector, _adapderFee) as any;
    }
}
export var MarketplaceAdapterAbi = abi;
